@include b(control-odoo-drbar) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;

    .el-tabs__header {
        margin: 0;
    }

    .el-tabs__active-bar {
        display: none;
    }

    .el-tabs__nav {
        .el-tabs__item.is-top {
            justify-content: flex-start;
            padding: 0;
            overflow: hidden;
            border: 1px solid getCssVar(color, border);
            border-left: none;

            &:nth-child(2) {
                border-left: 1px solid getCssVar(color, border);
                border-radius: getCssVar('border-radius', 'small') 0 0 getCssVar('border-radius', 'small');
            }

            &:last-child {
                border-radius:  0 getCssVar('border-radius', 'small') getCssVar('border-radius', 'small') 0;
            }

            &:nth-child(2):nth-last-child(1) {
                border-radius:  getCssVar('border-radius', 'small');
            }

            &:has(.#{bem(control-odoo-drbar-more-dropdown__link)}.is-collapse) {
                background-color: getCssVar('color',primary,light,default);
                border-color: transparent;

                .#{bem(control-odoo-drbar-more-dropdown__link)}.is-collapse::after {
                    position: absolute;
                    display: block;
                    width: 100%;
                    height: 100%;
                    content: '';
                    border: 1px solid getCssVar('color', primary);
                    border-radius:  0 getCssVar('border-radius', 'small') getCssVar('border-radius', 'small') 0;
                }
            }
        }
    }

    .el-tabs__nav-wrap::after {
        display: none;
    }
}

@include b(control-odoo-drbar-label) {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 105px;
    height: 100%;
    padding: getCssVar('spacing', 'tight');
    cursor: pointer;

    &:hover {
        background-color: getCssVar(color, tertiary, light, default);
    }

    @include e('icon') {
        margin-right: getCssVar('spacing', 'tight');
        font-size: 21px;
        color: getCssVar(color, primary);
    }

    @include e('right') {
        display: flex;
        flex-direction: column;
        font-size: getCssVar('font-size', 'small');
        line-height: 1.25;
        .#{bem('badge')} {
            width: auto;
            height: auto;
            line-height: 1;
            color: currentcolor;
            color: getCssVar(color, primary);
            background-color: transparent;
        }
    }
}

@include b(control-odoo-drbar-more-dropdown) {
    width: 100%;
    height: 100%;
    @include e('link') {
        display: flex;
        gap: getCssVar('spacing', 'extra-tight');
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: getCssVar('spacing', 'tight');
        @include when('collapse') {
            svg {
                transform: rotateX(180deg);
            }
        }
    }
}

@include b(control-odoo-drbar-more-dropdown-popper) {

    @include e('label') {
        width: 100%;
        height: auto;

        .#{bem('control-odoo-drbar-label')} {
            padding: getCssVar('spacing', 'tight') getCssVar('spacing', 'base');
        }
    }

    &.el-popper {
        min-width: 160px;
        max-height: 60vh;
        padding: getCssVar('spacing', 'extra-tight') 0;
        overflow: auto;
    }
}